package com.ruoyi.project.tool.swagger.UserController;

import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.annotation.SignatureValidation;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.interceptor.annotation.RepeatSubmit;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.system.domain.SysHouseDecoration;
import com.ruoyi.project.system.domain.SysMobileUser;
import com.ruoyi.project.system.service.ISysHouseDecorationService;
import com.ruoyi.project.system.service.ISysMobileUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 整屋装修Controller
 *
 * @author jjp
 * @date 2020-04-26
 */
@RestController
@Api("整屋装修")
@RequestMapping("/mobileUser/decoration")
public class UserHouseDecorationController extends BaseController {
    @Autowired
    private ISysHouseDecorationService sysHouseDecorationService;
    @Autowired
    private ISysMobileUserService sysMobileUserService;

    /**
     * 查询整屋装修列表
     */
    @ApiOperation("查询整屋装修列表")
    @SignatureValidation
    @GetMapping("/list")
    public TableDataInfo list(SysHouseDecoration sysHouseDecoration) {
        startPage();
        List<SysHouseDecoration> list = sysHouseDecorationService.selectSysHouseDecorationList(sysHouseDecoration);
        return getDataTable(list);
    }
}
